home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programmer's Power Pack / Delphi Volume 1.iso / s_to_z / vpe_130 / c / vpiface.h < prev   
C/C++ Source or Header  |  1996-09-15  |  4KB  |  93 lines

  1. //
  2. //              VPIFACE.H
  3. //              =========
  4. //
  5. // The DLL-Interface for the "Virtual Print Engine".
  6. //
  7. // To be used by the calling applications.
  8. //
  9. // external Macro-Definitions:
  10. // WINDOWS_DLL     generates Windows DLL-Code, else Windows static library
  11. //
  12. // 11/94 by IDEAL Software, T. Radde
  13. //
  14.  
  15.  
  16.  
  17. #ifndef _MODULE_VPIFACE
  18. #define _MODULE_VPIFACE
  19.  
  20.  
  21. #ifdef WINDOWS_DLL
  22.    #define EXPO    FAR PASCAL _export
  23. #else
  24.    #define EXPO
  25. #endif   
  26.  
  27.  
  28.  
  29. extern "C"
  30. {
  31.    int  EXPO VpeGetVersion();
  32.    long EXPO VpeOpenDoc(HWND hWndParent, char *title, int page_width, int page_height, long flags);
  33.    long EXPO VpeOpenDocFile(HWND hWndParent, LPSTR file_name, char *title, int page_width, int page_height, long flags);
  34.    int  EXPO VpeCloseDoc(long hDoc);
  35.    HWND EXPO VpeWindowHandle(long hDoc);
  36.    void EXPO VpeSetDefaultOutputRect(long hDoc, RECT *r);
  37.    void EXPO VpeSetOutputRect(long hDoc, RECT *r);
  38.    void EXPO VpeGetOutputRect(long hDoc, RECT *r);
  39.    void EXPO VpeSetPosRect(long hDoc, RECT *r);
  40.    void EXPO VpeGetPosRect(long hDoc, RECT *r);
  41.    void EXPO VpeSet(long hDoc, int what, int value);
  42.    int  EXPO VpeGet(long hDoc, int what);
  43.    void EXPO VpeStorePos(long hDoc);
  44.    void EXPO VpeRestorePos(long hDoc);
  45.    void EXPO VpeSetScale(long hDoc, double scale);
  46.    void EXPO VpeSetRulersMeasure(long hDoc, int rulers_measure);
  47.    int  EXPO VpeSetupPrinter(long hDoc, LPSTR file_name, int dialog_control);
  48.    void EXPO VpePrintDoc(long hDoc, BOOL with_setup);
  49.    int  EXPO VpeIsPrinting(long hDoc);
  50.    void EXPO VpePreviewDoc(long hDoc, RECT *rc, int show_hide);
  51.    void EXPO VpeSetUpdate(long hDoc, int yes_no);
  52.    void EXPO VpeRefreshDoc(long h);
  53.    void EXPO VpeSetPen(long hDoc, int pen_size, int pen_style, COLORREF color);
  54.    void EXPO VpeNoPen(long hDoc);
  55.    void EXPO VpeLine(long hDoc, int x, int y, int x2, int y2);
  56.    long EXPO VpePolyLine(long h, POINT *p, unsigned int size);
  57.    void EXPO VpeAddPolyPoint(long h, long p,  int x, int y);
  58.    void EXPO VpeSetBkgColor(long hDoc, COLORREF color);
  59.    void EXPO VpeSetTransparentMode(long hDoc, int on_off);
  60.    void EXPO VpeBox(long hDoc, int x, int y, int x2, int y2);
  61.    void EXPO VpeSetBarcodeParms(long hdoc, int orientation, BYTE top_bottom,
  62.                                    BYTE add_top_bottom);
  63.    void EXPO VpeBarcode(long h, int x, int y, int x2, int y2, 
  64.                            int code_type, LPSTR code, LPSTR add_code);
  65.    void EXPO VpeKeepBitmapAspect(long hdoc, int on_off);
  66.    void EXPO VpeDefaultBitmapDPI(long hdoc, int dpix, int dpiy);
  67.    LPCSTR EXPO VpeGetPictureTypes(BOOL with_filters);
  68.    void EXPO VpePicture(long hDoc, int x, int y, int x2, int y2, LPSTR file_name, int flags);
  69.    void EXPO VpeSelectFont(long hDoc, char *name, int size);
  70.    void EXPO VpeSetFontAttr(long hDoc, int alignment, int bold, int underlined, int italic);
  71.    void EXPO VpeSetAlign(long hDoc, int alignment);
  72.    void EXPO VpeSetBold(long hDoc, int bold);
  73.    void EXPO VpeSetUnderlined(long hDoc, int underlined);
  74.    void EXPO VpeSetItalic(long hDoc, int italic);
  75.    void EXPO VpeSetTextColor(long hdoc, COLORREF color);
  76.    int  EXPO VpePrint(long h, int x, int y, char *s);
  77.    int  EXPO VpePrintBox(long h, int x, int y, char *s);
  78.    int  EXPO VpeWrite(long h, int x, int y, int x2, int y2, char *s);
  79.    int  EXPO VpeWriteBox(long hDoc, int x, int y, int x2, int y2, char *s);
  80.    void EXPO VpeDefineHeader(long hDoc, int x, int y, int x2, int y2, char *s);
  81.    void EXPO VpeDefineFooter(long hDoc, int x, int y, int x2, int y2, char *s);
  82.    void EXPO VpePageBreak(long hDoc);
  83.    int  EXPO VpeGetPageCount(long hdoc);
  84.    int  EXPO VpeGetCurrentPage(long hDoc);
  85.    void EXPO VpeGotoPage(long hDoc, int page);
  86.    void EXPO VpeStoreSet(long hDoc, int id);
  87.    void EXPO VpeUseSet(long hDoc, int id);
  88.    void EXPO VpeRemoveSet(long hDoc, int id);
  89. }
  90.  
  91.  
  92. #endif          // _MODULE_VPIFACE
  93.